package gp;

class Addition extends Function {

	Addition() {
		arg = new Program[2];
	}

	String getName() {
		return "add";
	}

	double eval(double x) {
		return arg[0].eval(x) + arg[1].eval(x);
	}

}